package com.dsideal.cloud.cas.client.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class TokenEntity {

    @Value("${jwt.expire}")
    private String expire;

    private String token;

    public TokenEntity() {
    }

    public TokenEntity(String token) {
        this.expire = getExpire();
        this.token = token;
    }

    public TokenEntity(String expire, String token) {
        this.expire = expire;
        this.token = token;
    }
}
